package com.googlecode.iiddefecttracker.sample;

import java.util.Arrays;
import java.util.List;

import com.googlecode.iiddefecttracker.domain.Project;
import com.googlecode.iiddefecttracker.domain.ProjectBeanImpl;

/**
 * I
 */
public class ProjectTestData {
    
    private static Project testProject;
    
    public static List<Project> allProjectTestData() {
        return Arrays.asList(testProject());
    }
    
    public static Project testProject() {
        
        if (testProject == null) {
            testProject = new ProjectBeanImpl();
            testProject.setName("Test Project");
            testProject.setVersion("prototype");
            testProject
                    .setDescription("A description not longer than 200 chars of what project is.");
        }
        
        return testProject;
    }
}
